package com.yunji.news.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 登录响应DTO
 *
 * @author yunji
 * @since 2024-11-23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginResponse {
    
    /**
     * 访问令牌
     */
    private String token;
    
    /**
     * 刷新令牌
     */
    private String refreshToken;
    
    /**
     * 用户信息
     */
    private AdminUserInfo userInfo;
    
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class AdminUserInfo {
        private Long id;
        private String username;
        private String realName;
        private String email;
        private String phone;
        private String role;
        private Long schoolId;
        private String schoolName;
    }
}